package com.stark.wechat.service.draft.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ProductInfo implements Serializable {

    private static final long serialVersionUID = -7113177935720710366L;

    /**
     * 文末插入商品相关信息
     */
    @JsonProperty("footer_product_info")
    private FooterProductInfo footerProductInfo;

    /**
     * 文末插入商品相关信息
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Accessors(chain = true)
    public static class FooterProductInfo implements Serializable {

        private static final long serialVersionUID = -6781518104781484808L;

        /**
         * 商品key
         */
        @JsonProperty("product_key")
        private String productKey;

    }

}
